#include<iostream>
#include<unistd.h>
#include<stdlib.h>
#include<pthread.h>
#include<stdio.h>
#include<string>
using namespace std;
  

int ticket=10000;

void GetTicket(std::string name)
{
    while(true)
    {
        if(ticket>0)
        {
            usleep(1000);
            printf("%s get aticket:%d\n",name.c_str(),ticket);
            ticket--;
        }
        else
        {
            break; 
        }
    }
}
int main()
{

    return 0;
}